import { request } from '../request';

/** get list */
export function noticeInfoList(params: Api.SystemManage.NoticeInfoSearchParams) {
  return request<Api.SystemManage.NoticeInfoList>({
    url: '/noticeInfo/list',
    method: 'post',
    data: params
  });
}

/** save */
export function noticeInfoSave(params?: Api.SystemManage.NoticeInfoSaveParams) {
  return request<boolean>({
    url: '/noticeInfo/add',
    method: 'post',
    data: params
  });
}

/** update */
export function noticeInfoUpdate(params?: Api.SystemManage.NoticeInfoUpdateParams) {
  return request<boolean>({
    url: '/noticeInfo/update',
    method: 'post',
    data: params
  });
}

/** get */
export function noticeInfoGet(params: { id: string }) {
  return request<Api.SystemManage.NoticeInfo>({
    url: '/noticeInfo/get',
    method: 'post',
    data: params
  });
}

/** del */
export function noticeInfoDel(params: { id: string }) {
  return request<boolean>({
    url: '/noticeInfo/del',
    method: 'post',
    data: params
  });
}

/** delBatch */
export function noticeInfoDelBatch(params: { ids: Array<string> }) {
  return request<boolean>({
    url: '/noticeInfo/delBatch',
    method: 'post',
    data: params
  });
}
